package cn.barudisshu.guas;

public class HttpMethod {
    public static final String GET = "GET";
    public static final String POST = "POST";
    public static final String PUT = "PUT";
    public static final String DELETE = "DELETE";
    //jdk7- not support
    public static final String PATCH = "PATCH";

    public static boolean support(String httpMethod) {
        return GET.equals(httpMethod) || POST.equals(httpMethod) || PUT.equals(httpMethod) || DELETE.equals(httpMethod) || PATCH.equals(httpMethod);
    }
}
